import request from '@/utils/request'

// 查询学习进度记录列表
export function listUserLearningProgress(query) {
  return request({
    url: '/education/UserLearningProgress/list',
    method: 'get',
    params: query
  })
}

// 查询学习进度记录详细
export function getUserLearningProgress(id) {
  return request({
    url: '/education/UserLearningProgress/' + id,
    method: 'get'
  })
}

// 新增学习进度记录
export function addUserLearningProgress(data) {
  return request({
    url: '/education/UserLearningProgress',
    method: 'post',
    data: data
  })
}

// 修改学习进度记录
export function updateUserLearningProgress(data) {
  return request({
    url: '/education/UserLearningProgress',
    method: 'put',
    data: data
  })
}

// 删除学习进度记录
export function delUserLearningProgress(id) {
  return request({
    url: '/education/UserLearningProgress/' + id,
    method: 'delete'
  })
}
